projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58430f2
)
Fix highlighting of short selectors in CSS mode
author
Simen Heggestøyl
<simenheg@gmail.com>
Sun, 16 Apr 2017 09:55:33 +0000
(11:55 +0200)
committer
Simen Heggestøyl
<simenheg@gmail.com>
Sun, 16 Apr 2017 09:55:33 +0000
(11:55 +0200)
* lisp/textmodes/css-mode.el (css--font-lock-keywords): Highlight
selectors where the part before a colon is only one character long,
such as `a:hover'.
lisp/textmodes/css-mode.el
patch
|
blob
|
history
diff --git
a/lisp/textmodes/css-mode.el
b/lisp/textmodes/css-mode.el
index 2088ea0a1e60340dc013b7485145a6cf4b6a4e75..d4a5cfe6293fd250ac8be7e70afd99692347c813 100644
(file)
--- a/
lisp/textmodes/css-mode.el
+++ b/
lisp/textmodes/css-mode.el
@@
-733,7
+733,7
@@
cannot be completed sensibly: `custom-ident',
(if (not sassy)
;; We don't allow / as first char, so as not to
;; take a comment as the beginning of a selector.
- "[^@/:{}() \t\n][^:{}()]
+
"
+ "[^@/:{}() \t\n][^:{}()]
*
"
;; Same as for non-sassy except we do want to allow { and }
;; chars in selectors in the case of #{$foo}
;; variable interpolation!